﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity
{
    public class RegistrationRequest
    {
        public string Username { get; set; }
        public string Password { get; set; }
        public string EmailAddress { get; set; }

        public RegistrationBIRequest FromDto()
        {
            RegistrationBIRequest request = new RegistrationBIRequest();
            request.EmailAddress = EmailAddress;
            request.Password = Password;
            request.Username = Username;
            return request;
        }

        public List<string> Log()
        {
            List<string> result = new List<string>();
            result.Add("Method: Registration - Request");
            result.Add("Request by: " + Username);
            result.Add("Password: " + Password);
            result.Add("Email: " + EmailAddress);
            return result;
        }
    }
}
